<template>
  <div v-text="value"></div>
</template>

<script>
export default {
  name: 'Currency',
  props: {
    fieldValue: {
      type: Number,
      required: false,
      default: () => {
        return undefined;
      }
    }
  },
  computed: {
    value() {
      return this.fieldValue ? this.fieldValue + ' 元' : '未知';
    }
  }
}
</script>

<style scoped>

</style>